package com.zhike.service.system.impl;

import com.zhike.mapper.system.EsysSnMapper;
import com.zhike.common.vo.EsysSnVO;
import com.zhike.service.system.IEsysSnService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class EsysSnServiceImpl implements IEsysSnService {

    @Resource
    private EsysSnMapper esysSnMapper;

    @Override
    public EsysSnVO queryDataByName(String snName) {
        return esysSnMapper.queryDataByName(snName);
    }

    @Override
    public Boolean updateCurrentValueByName(Long currentValue, String snName) {
        return esysSnMapper.updateCurrentValueByName(currentValue, snName) > 0;
    }
}
